<?php
/*
 * Copyright (c) 2006 Byrne Reese. All rights reserved.
 * 
 * This library is free software; you can redistribute it and/or modify it 
 * under the terms of the BSD License.
 *
 * This library is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 *
 * @author Byrne Reese <byrne@majordojo.com>
 */

require_once("lib/config.php");
require_once("lib/MySQLGoogleCheckoutServer.php");
connect_to_db();

if (isset($HTTP_RAW_POST_DATA)) {
  $input = $HTTP_RAW_POST_DATA;
} else {
  $input = implode("\r\n", file('php://input'));
}
$server = new MySQLGoogleCheckoutServer();
print $server->handleXML($input);

?>
